package com.pinda.service.impl;


import com.pinda.mapper.PdOrderCargoMapper;
import com.pinda.oms.entity.PdOrderCargo;
import com.pinda.oms.vo.PdOrderCargoSerach;
import com.pinda.oms.vo.PdOrderCargoView;
import com.pinda.service.IPdOrderCargoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lc
 * @since 2023-06-25
 */
@Service
public class PdOrderCargoServiceImpl extends ServiceImpl<PdOrderCargoMapper, PdOrderCargo> implements IPdOrderCargoService {

    @Autowired
    private PdOrderCargoMapper orderCargoMapper;

    /**
     * 订单详情页的查询sql 货品信息
     * pd_order_cargo 货物表
     * 根据订单和运单编号查询得到获取该订单对应到的货物信息表
     * @param serach
     * @return
     */
    @Override
    public List<PdOrderCargoView> selectOrderCargoaByorderidService(PdOrderCargoSerach serach) {
        return this.orderCargoMapper.selectOrderCargoaByorderid(serach);
    }
}
